package animix.blue.server.user.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component// 以组件的方式使用，使用的时候可以直接注入
@ConfigurationProperties(prefix = "animix.blue.server.user")// 指定properties配置文件中的key前缀
@PropertySource("classpath:resources.properties")// 指定配置文件的位置
public class ResourcesProperties {

    private String USER_SESSION_KEY;

    private Integer USER_SESSION_EXPIRE;

    private String USER_INITIAL_PASSWORD;

    public String getUSER_INITIAL_PASSWORD() {
        return USER_INITIAL_PASSWORD;
    }

    public void setUSER_INITIAL_PASSWORD(String USER_INITIAL_PASSWORD) {
        this.USER_INITIAL_PASSWORD = USER_INITIAL_PASSWORD;
    }

    public String getUSER_SESSION_KEY() {
        return USER_SESSION_KEY;
    }

    public void setUSER_SESSION_KEY(String USER_SESSION_KEY) {
        this.USER_SESSION_KEY = USER_SESSION_KEY;
    }

    public Integer getUSER_SESSION_EXPIRE() {
        return USER_SESSION_EXPIRE;
    }

    public void setUSER_SESSION_EXPIRE(Integer USER_SESSION_EXPIRE) {
        this.USER_SESSION_EXPIRE = USER_SESSION_EXPIRE;
    }
}
